using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;

public class UIGameArea : MonoBehaviour,IDragHandler,IBeginDragHandler,IEndDragHandler,IScrollHandler
{

    public void OnDrag(PointerEventData eventData)
    {
        UIEvent.Instance.OnDragGameArea();
    }

    public void OnBeginDrag(PointerEventData eventData)
    {
        UIEvent.Instance.OnDragGameAreaStart();
    }

    public void OnEndDrag(PointerEventData eventData)
    {
        UIEvent.Instance.OnDragGameAreaEnd();
    }

    public void OnScroll(PointerEventData eventData)
    {
        Debug.Log("OnScroll");
        GameManager.Instance.gameController.OnScroll(eventData);
    }
    
}
